import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'
import './assets/main.css'
import * as antIcons from '@ant-design/icons-vue'

import { createApp } from 'vue'
import store from './stores/index'
import App from './App.vue'
import router from './router'
import './router/permission.js'

import { getAssetsFile } from '@/utils/util'

const app = createApp(App)

app.config.globalProperties.$getAssetsFile = getAssetsFile

Object.keys(antIcons).forEach((key) => {
  app.component(key, antIcons[key])
})

app.use(store)
app.use(router)
app.use(Antd)

app.mount('#app')
